<template>
  <div>
    <router-view v-slot={Component}>
      <keep-alive>
        <component :is="Component" v-if="$route.meta.keep"/>
      </keep-alive>
        <component :is="Component" v-if="!$route.meta.keep"/>
    </router-view>
  </div>
  
  
</template>

<script>
export default {
  created(){
    let width=document.documentElement.clientWidth
    document.documentElement.style.fontSize=width/750+'px'
    window.onresize=()=>{
      let width=document.documentElement.clientWidth
      document.documentElement.style.fontSize=width/750+'px'
    }
    
  },
  beforeUnmount() {
    
  },
}
</script>
<style lang="less" scope>
@import url('//at.alicdn.com/t/font_3001840_y1balz7gvsr.css');
@import './assets/css/globe.less';
input{
  outline:none;
  border: 0;
}
.iconfont{
  font-size: inherit;
}
button{
  outline: none;
  border: none;
}
*{
  margin:0;
  padding: 0;
  box-sizing: border-box;
  line-height: 100%;
}
ul{
  list-style: none;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
.icon-shoucang{
  color: yellow;
}
.icon-aixin{
  color: red;
}
</style>
